From 0e65f04e1e780865f80660df315e800e6b0cbccd Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Tue, 1 Nov 2022 22:36:19 +0100 Subject: move bot versions to its own tab --- .../src/routes/bots/[bot_name]/versions.svelte | 85 ++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 web/pw-server/src/routes/bots/[bot_name]/versions.svelte (limited to 'web/pw-server/src/routes/bots/[bot_name]/versions.svelte') diff --git a/web/pw-server/src/routes/bots/[bot_name]/versions.svelte b/web/pw-server/src/routes/bots/[bot_name]/versions.svelte new file mode 100644 index 0000000..73f891f --- /dev/null +++ b/web/pw-server/src/routes/bots/[bot_name]/versions.svelte @@ -0,0 +1,85 @@ + + + + + +
+
+ + Publish a new version by pushing a docker container to + registry.planetwars.dev/{bot["name"]}:latest, or using the web editor. +
+ +
+

Versions

+
    + {#each versions as version} +
  • + {dayjs(version["created_at"]).format("YYYY-MM-DD HH:mm")} + {#if version["container_digest"]} + {version["container_digest"]} + {:else} + view code + {/if} +
  • + {/each} +
+ {#if versions.length == 0} + This bot does not have any versions yet. + {/if} +
+
+ + -- cgit v1.2.3